import request from '@/utils/request'

export default class Department {
  static getDepartmentService = () => request.get('/company/department')

  static getManagerListService = () => request.get('/sys/user/simple')

  static addDepartmentService = (data: any) =>
    request.post('/company/department', data)

  static getDepartmentDetailService = (id: any) =>
    request.get('/company/department', { params: { id } })

  static updateDepartmentService = (data: any) =>
    request.put('/company/department', data, { params: { id: data.id } })

  static deleteDepartmentService = (id: any) =>
    request.delete('/company/department', { params: { id } })
}
